package cnhy.salary.domain.dto;

import lombok.Data;
import lombok.var;

@Data
public class M3HandlerDto {


    private String callbackTag;
    private CallbackData data;

    @Data
    public static class CallbackData {
        private long personId;
        private String deviceSn;
        private long recognizeTime;
        private int recognizeType;
        private boolean recognizeGroupFlag;
        private int personType;
        private String tpId;
        String fileKey;
    }

    @Data
    public static class Result {
        public static Result ok(String msg) {
            var r = new Result();
            r.result = "0";
            r.message = msg;
            return r;
        }

        String result;
        String message;
    }

    @Data
    public static class QueryParam {

        String timestamp;
        String nonce;
        String signVersion;
        String signature;
        String orgId;
    }
    @Data
    public static class QueryBody{
        QueryParam query;
        M3HandlerDto body;
    }
}
